package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 产品出库联表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "goods_outbound")
public class GoodsOutbound implements Serializable {
    /**
     * 产品出库表id
     */
    @TableId(value = "goods_outbound_no", type = IdType.INPUT)
    private Integer goodsOutboundNo;

    /**
     * 产品从表id
     */
    @TableField(value = "goods_spec_id")
    private Integer goodsSpecId;

    /**
     * 仓库id
     */
    @TableField(value = "store_id")
    private Integer storeId;

    /**
     * 出库数量
     */
    @TableField(value = "goods_outbound_sum")
    private Integer goodsOutboundSum;

    /**
     * 产品库存表id
     */
    @TableField(value = "goods_store_id")
    private Integer goodsStoreId;

    /**
     * 单价
     */
    @TableField(value = "one_price")
    private BigDecimal onePrice;

    /**
     * 折扣
     */
    @TableField(value = "discount")
    private BigDecimal discount;

    /**
     * 折后单价
     */
    @TableField(value = "discount_one_price")
    private BigDecimal discountOnePrice;

    /**
     * 折后总价
     */
    @TableField(value = "discount_total")
    private BigDecimal discountTotal;

    /**
     * 产品出库备注
     */
    @TableField(value = "notes")
    private String notes;

    private static final long serialVersionUID = 1L;
}